package com.hnust.service;

import com.hnust.domain.record.CourseRecord;

import java.io.File;
import java.util.List;
import java.util.Map;
/**
 * 课程管理的服务接口
 * */
public interface CourseService {
    //获取课程列表
    public Map get(String collegeId, Integer currentPage, Integer rows) throws Exception;
    //查询课程
    public Map query( String collegeId, String courseName,Integer currentPage, Integer rows) throws Exception;
    //添加课程
    public Boolean add(String account,CourseRecord courseRecord) throws Exception;
    //删除课程
    public <T> Boolean delete(T courseIds) throws Exception;
    //修改课程
    public Boolean modify(CourseRecord courseRecord) throws Exception;
    //下载（课程导入）模板
    public void download() throws Exception;
    //上传（课程导入）模板
    public List<CourseRecord> upload(File file) throws Exception;
    //批量导入课程
    public Boolean course(String account,List<CourseRecord> courseRecords) throws Exception;
}
